package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IPhoneLoginActivityModel;
import com.wgts.wgts.mvp.presenter.IPhoneLoginActivityPersenter;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.LoginRequest;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.LoginEntity;
import com.wgts.wgts.tools.CountDownTime;
import com.wgts.wgts.tools.SharedpreferencesHelper;

public class PhoneLoginActivityModel implements IPhoneLoginActivityModel{

    private NetService netService;

    private SharedpreferencesHelper sharedpreferencesHelper;

    private CountDownTime countDownTime;

    public PhoneLoginActivityModel(NetService netService, SharedpreferencesHelper sharedpreferencesHelper, CountDownTime countDownTime) {
        this.netService = netService;
        this.sharedpreferencesHelper = sharedpreferencesHelper;
    }

    @Override
    public void login(LoginRequest loginRequest, HttpResultSubscriber<LoginEntity> loginEntityHttpResultSubscriber) {
        netService.login(loginEntityHttpResultSubscriber, loginRequest);
    }

    @Override
    public void phoneAffirm(String phone, String scene, String smsCode, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.phoneAffirm(phone, scene, smsCode, subscriber);
    }
}
